package com.mxpio.erp.autoconfigure.plm;

import com.mxpio.erp.common.Constant;
import com.mxpio.erp.common.vo.ModuleVO;
import com.mxpio.erp.plm.PlmConfiguration;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnClass(PlmConfiguration.class)
@Import(PlmConfiguration.class)
@Slf4j
public class PlmAutoConfiguration {

	public PlmAutoConfiguration() {
		log.info("[AutoConfiguration==>]:ERP -- Plm Module Loading");
		
		Constant.addModule(new ModuleVO("Plm", "PLM模块"));
	}
}
